package com.huiyuan.service;

import com.huiyuan.common.Page;
import com.huiyuan.common.Bike;
    /**
 * @author huiyuan080
 * @data 2023/5/2
 * @apiNote
 */
public interface BikeService{


    int deleteByPrimaryKey(Integer bikeId);

    int insert(Bike record);

    int insertSelective(Bike record);

    Bike selectByPrimaryKey(Integer bikeId);

    int updateByPrimaryKeySelective(Bike record);

    int updateByPrimaryKey(Bike record);

        /**
         * 分页展示车辆信息
         * @param page
         * @return
         */
        Page getBicycle(Page page);

        /**
         * 修改车辆的使用情况
         * @param bicycleId
         * @return
         */
        int addUse(Integer bicycleId);

        /**
         * 车辆的状态
         * @param bicycleId
         * @return
         */
        Bike isNull(Integer bicycleId);
    }
